﻿using System;

namespace Kay.Communication.Framework.Custom_EventArgs
{
    /// <summary>
    /// 为用户信息相关事件提供数据
    /// </summary>
    public class ContactsInfoEventArgs : EventArgs
    {
        /// <summary>
        /// 初始化用户数据
        /// </summary>
        /// <param name="user">用户信息</param>
        public ContactsInfoEventArgs(ContactsInfo user)
        {
            if (user == null) throw new ArgumentNullException("user");
            UserInfo = user;
        }

        /// <summary>
        /// 获取或设置用户数据
        /// </summary>
        public ContactsInfo UserInfo { get; set; }
    }
}